package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * Copyright: Copyright (c) 2019 Super520
 * 描述：游记推荐
 *
 * @package: cn.wolfcode.trip.base.service
 * @author: Patch
 * @date: 2019/5/23 2:37
 * 总结:
 */
public interface ITravelCommendService {
    /**
     * 游记推荐高级查询
     *
     * @param qo
     * @return
     */
    PageInfo<TravelCommend> query(QueryObject qo);

    /**
     * 游记更新和保存
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * App游记推荐
     *
     * @param qo
     * @return
     */
    PageInfo<Map> queryForApp(TravelCommendQueryObject qo);
}
